package com.zjdiepu.www.base.lang;

/**
 * httpClient运行时异常
 *
 * @author fangqing
 * @version 1.0
 */
public class HttpClientException extends Exception {

    private static final long serialVersionUID = -6589383831429252981L;
    /**
     * http状态码
     */
    private int httpStatusCode;

    public HttpClientException(int httpStatusCode) {
        super();
        this.httpStatusCode = httpStatusCode;
    }

    public HttpClientException(int httpStatusCode, String message) {
        super(message);
        this.httpStatusCode = httpStatusCode;
    }

    public HttpClientException(int httpStatusCode, Throwable cause) {
        super(cause);
        this.httpStatusCode = httpStatusCode;

    }

	public int getHttpStatusCode() {
		return httpStatusCode;
	}

	public void setHttpStatusCode(int httpStatusCode) {
		this.httpStatusCode = httpStatusCode;
	}
}
